<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>

    <title>分类管理</title>

    <!-- 全局js -->
    <script type="text/javascript" th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
    <script type="text/javascript" th:src="@{/js/jquery.form.js}"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap.min.js?v=3.3.6}"></script>
    <script type="text/javascript" th:src="@{/js/content.min.js?v=1.0.0}"></script>
    <script type="text/javascript" th:src="@{/js/common.js}"></script>
    <!-- 标签页 js -->
    <script type="text/javascript" th:src="@{/js/contabs.min.js?v=1.0.0}"></script>
    <!-- SweetAlert弹出插件 -->
    <script type="text/javascript"
            th:src="@{/js/plugins/sweetalert/sweetalert.min.js}"></script>
    <!-- toastr 插件 -->
    <script th:src="@{/js/plugins/toastr/toastr.min.js}"></script>
    <!-- jstree 插件 -->
    <script th:src="@{/js/plugins/jsTree/jstree.min.js}"></script>
    <!-- Bootstrap table -->
    <script type="text/javascript" th:src="@{/js/plugins/bootstrap-table/bootstrap-table.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
    <!-- treeview插件 -->
    <script th:src="@{/js/plugins/treeview/bootstrap-treeview.js}"></script>
    <!-- 文件上传ajaxfileupload.js  -->
    <script th:src="@{/js/ajaxfileupload.js}"></script>
    <!-- 遮罩插件 -->
    <script th:src="@{/js/jquery.mloading.js}"></script>
    <!-- 页面JS -->
    <script th:src="@{/js/my/base.js}"></script>
    <script th:src="@{/js/my/category.js}"></script>
    <!--!全局css -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet" />
    <link th:href="@{/css/bootstrap.min14ed.css?v=3.3.6}" rel="stylesheet">
    <link th:href="@{/css/font-awesome.min93e3.css?v=4.4.0}" rel="stylesheet">
    <link th:href="@{/css/animate.min.css}" rel="stylesheet">
    <link th:href="@{/css/style.min862f.css?v=4.1.0}" rel="stylesheet">
    <link th:href="@{/css/plugins/sweetalert/sweetalert.css}" rel="stylesheet">
    <link th:href="@{/css/style.min.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/iCheck/custom.css}" rel="stylesheet">
    <!--Echarts-->
    <link th:href="@{/css/bootstrap.min14ed.css?v=3.3.6}" rel="stylesheet">
    <link th:href="@{/css/font-awesome.min93e3.css?v=4.4.0}" rel="stylesheet">
    <link th:href="@{/css/animate.min.css}" rel="stylesheet">
    <link th:href="@{/css/style.min862f.css?v=4.1.0}" rel="stylesheet">
    <link th:href="@{/css/plugins/treeview/bootstrap-treeview.css}" rel="stylesheet">
    <!-- 遮罩插件样式 -->
    <link th:href="@{/css/jquery.mloading.css}" rel="stylesheet">
    
    <style type="text/css">
        #mainData{
            table-layout: fixed;
        }
    </style>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="row row-lg">
				            <div class="col-sm-12">
				                <div class="btn-group hidden-xs" id="table_toolbar" role="group">
				                    <button id="queryButton" type="button" data-toggle="tooltip" data-placement="top" title="搜索"
				                            class="btn btn-outline btn-default" onclick="queryData()">
				                        <i class="glyphicon glyphicon-search" aria-hidden="true"></i>
				                    </button>
				                    <!-- <a onclick="aa()" class="btn btn-primary ">上传文件到七牛云</a>  -->
				                    <button id="recovery" type="button" data-toggle="tooltip" data-placement="top" title="重置"
				                    		class="btn btn-outline btn-default" onclick="recovery()">
				                        <i class="glyphicon glyphicon-repeat" aria-hidden="true"></i>
				                    </button>
				                     <button id="add" type="button" data-toggle="tooltip" data-placement="top" title="新增"
				                            class="btn btn-outline btn-default" onclick="addWindow()">
				                        <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
				                    </button> 
				                </div>
				                <!--搜索栏-->
				                <div class="btn-group hidden-xs col-lg-2" id="queryContent1" role="group">
				                    <input id="searchText1" placeholder="请输入词汇名称" class="form-control" style="max-width:456px;">
				                </div>
				                <table id="mainData" 
				                	class='table table-striped table-bsortFlaged table-hover dataTables-example' 
				                	style="word-break:break-all;font-size: 14px;"
				                 data-mobile-responsive="true"></table>
				            </div>
			        	</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 【修改】时，单击“修改”按钮时弹出此窗口. -->
<div class="modal inmodal fade" id="editModal" data-target="#departmentModal_edit" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <form class="form-horizontal m-t" id="editRoleForm">
            <div class="modal-content">
                <!--窗体头部-->
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span
                            class="sr-only">Close</span></button>
                    <!-- 标题 -->
                    <h5 class="modal-title">修改课程类型</h5>
                </div>
                <!--窗体主体-->
                <input type="text" id="edit_id"   style="width:150px; height:30px;    display: none" />
                <div class="modal-body">
                    <!--普通输入框-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label">类型名称&nbsp;*：</label>
                        <div class="col-sm-6">
                        	<input type="hidden" id="edit_cou_id"/>
                            <input id="edit_cou_name"      name="inventory_staff" minlength="2" type="text"
                                   class="form-control"  required="required" aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">顺序&nbsp;*：</label>
                        <div class="col-sm-6">
                            <input id="edit_cou_sortFlag" name="edit_cou_sortFlag" minlength="2" type="text" onkeyup="value=value.replace(/[^\d]/g,'') " ng-pattern="/[^a-zA-Z]/"
                                   class="form-control"  required="required" aria-required="true">
                        </div>
                    </div>
                </div>
                <div class="modal-footer" align="center">
                    <div class="form-group">
                        <div class="col-sm-12" align="right">
                            <button class="btn btn-primary dim" type="button" onclick="editInvInfo()">保存</button>
                            <button type="button" class="btn btn-danger dim" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="modal inmodal fade" id="addModal" data-target="#departmentModal_edit" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <form class="form-horizontal m-t" id="editRoleForm">
            <div class="modal-content">
                <!--窗体头部-->
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span
                            class="sr-only">Close</span></button>
                    <!-- 标题 -->
                    <h5 class="modal-title">添加课程</h5>
                </div>
                <!--窗体主体-->
                <div class="modal-body">
                    <!--普通输入框-->
                   <form id="form1" method="post" enctype="multipart/form-data" action="<%=request.getContextPath() %>%>/CourseC/addCourse1" >
                    <div class="form-group">
                        <label class="col-sm-3 control-label">词汇名称&nbsp;*：</label>
                        <div class="col-sm-6">
                            <input id="add_cou_name" name="add_cou_name" minlength="2" type="text"
                                   class="form-control"  required="required" aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">顺序&nbsp;*：</label>
                        <div class="col-sm-6">
                            <input id="add_cou_sortFlag" name="add_cou_sortFlag" minlength="2" type="text" onkeyup="value=value.replace(/[^\d]/g,'') " ng-pattern="/[^a-zA-Z]/"
                                   class="form-control"  required="required" aria-required="true">
                        </div>
                    </div>
                    </form>                                  
                </div>
                <div class="modal-footer" align="center">
                    <div class="form-group">
                        <div class="col-sm-12" align="right">
                            <button class="btn btn-primary dim" type="button" onclick="addSubmit()">保存</button>
                            <button type="button" class="btn btn-danger dim" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>